package com.cn.hu.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * RuleMenuRef entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "rule_menu_ref", catalog = "huarui")
public class RuleMenuRef implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer ruleId;
	private Integer menuId;

	// Constructors

	/** default constructor */
	public RuleMenuRef() {
	}

	/** full constructor */
	public RuleMenuRef(Integer ruleId, Integer menuId) {
		this.ruleId = ruleId;
		this.menuId = menuId;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "rule_id")
	public Integer getRuleId() {
		return this.ruleId;
	}

	public void setRuleId(Integer ruleId) {
		this.ruleId = ruleId;
	}

	@Column(name = "menu_id")
	public Integer getMenuId() {
		return this.menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

}